package org.budo.launcher.undertow;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;

import org.apache.jasper.servlet.JspServlet;
import org.apache.tomcat.InstanceManager;
import org.apache.tomcat.SimpleInstanceManager;

/**
 * @author lmw
 */
public class BudoJspServlet extends JspServlet {
    private static final long serialVersionUID = 7321132882175858810L;

    @Override
    public void init(ServletConfig config) throws ServletException {
        super.init(config);

        config.getServletContext().setAttribute(InstanceManager.class.getName(), new SimpleInstanceManager());
    }
}